// 分类设置
import { reactive } from 'vue'

/**
 * mainCategory(主分类) 简写 mc
 * subCategory(子分类) 简写 sc
 */

// 导入图标 
import mcImg_01 from '@/icon/068_餐饮_分类.svg'
import mcImg_02 from '@/icon/068_购物_分类.svg'
import mcImg_03 from '@/icon/068_交通_分类.svg'
import mcImg_04 from '@/icon/068_住宿_分类.svg'
import mcImg_05 from '@/icon/068_学习_分类.svg'
import mcImg_06 from '@/icon/068_人情_分类.svg'
import mcImg_07 from '@/icon/068_娱乐_分类.svg'
import mcImg_08 from '@/icon/068_美妆_分类.svg'
import mcImg_09 from '@/icon/068_旅游_分类.svg'
import mcImg_10 from '@/icon/068_医疗_分类.svg'
import mcImg_11 from '@/icon/068_通讯_分类.svg'

import mcImg_12 from '@/icon/068_职业收入_分类.svg'

import scImg_01 from '@/icon/071_包子_子分类.svg'
import scImg_02 from '@/icon/071_贝类_子分类.svg'
import scImg_03 from '@/icon/071_茶点_子分类.svg'
import scImg_04 from '@/icon/071_肠粉_子分类.svg'
import scImg_05 from '@/icon/071_鸡_子分类.svg'
import scImg_06 from '@/icon/071_鸡蛋_子分类.svg'
import scImg_07 from '@/icon/071_饺子_子分类.svg'
import scImg_08 from '@/icon/071_冷饮_子分类.svg'
import scImg_09 from '@/icon/071_米饭_子分类.svg'
import scImg_10 from '@/icon/071_面食_子分类.svg'
import scImg_11 from '@/icon/071_螃蟹_子分类.svg'
import scImg_12 from '@/icon/071_啤酒_子分类.svg'
import scImg_13 from '@/icon/071_热饮_子分类.svg'
import scImg_14 from '@/icon/071_水果_子分类.svg'
import scImg_15 from '@/icon/071_甜品_子分类.svg'
import scImg_16 from '@/icon/071_虾_子分类.svg'
import scImg_17 from '@/icon/071_香肠_子分类.svg'
import scImg_18 from '@/icon/071_小炒_子分类.svg'
import scImg_19 from '@/icon/071_鱼_子分类.svg'
import scImg_20 from '@/icon/071_粥_子分类.svg'

import scImg_21 from '@/icon/072_包包_子分类.svg'
import scImg_22 from '@/icon/072_厨房用品_子分类.svg'
import scImg_23 from '@/icon/072_电器_子分类.svg'
import scImg_24 from '@/icon/072_服装_子分类.svg'
import scImg_25 from '@/icon/072_购物袋_子分类.svg'

import scImg_26 from '@/icon/073_公交_子分类.svg'
import scImg_27 from '@/icon/073_私家车_子分类.svg'
import scImg_28 from '@/icon/073_地铁_子分类.svg'
import scImg_29 from '@/icon/073_自行车_子分类.svg'
import scImg_30 from '@/icon/073_飞机_子分类.svg'
import scImg_31 from '@/icon/073_游轮_子分类.svg'
import scImg_32 from '@/icon/073_缆车_子分类.svg'
import scImg_33 from '@/icon/073_出租车_子分类.svg'

import scImg_34 from '@/icon/074_房租_子分类.svg'
import scImg_35 from '@/icon/074_物业水电_子分类.svg'
import scImg_36 from '@/icon/074_维修_子分类.svg'

import scImg_37 from '@/icon/075_网课_子分类.svg'
import scImg_38 from '@/icon/075_书籍_子分类.svg'
import scImg_39 from '@/icon/075_培训_子分类.svg'

import scImg_40 from '@/icon/076_送礼_子分类.svg'
import scImg_41 from '@/icon/076_发红包_子分类.svg'

import scImg_42 from '@/icon/077_休闲_子分类.svg'
import scImg_43 from '@/icon/077_电影_子分类.svg'
import scImg_44 from '@/icon/077_健身_子分类.svg'
import scImg_45 from '@/icon/077_约会_子分类.svg'
import scImg_46 from '@/icon/077_游戏_子分类.svg'
import scImg_47 from '@/icon/077_演唱会_子分类.svg'

import scImg_48 from '@/icon/078_洗面奶_子分类.svg'
import scImg_49 from '@/icon/078_化妆品_子分类.svg'
import scImg_50 from '@/icon/078_面膜_子分类.svg'

import scImg_51 from '@/icon/079_景点门票_子分类.svg'
import scImg_52 from '@/icon/079_酒店_子分类.svg'
import scImg_53 from '@/icon/079_团费_子分类.svg'
import scImg_54 from '@/icon/079_伴手礼_子分类.svg'

import scImg_55 from '@/icon/080_药品_子分类.svg'
import scImg_56 from '@/icon/080_治疗_子分类.svg'
import scImg_57 from '@/icon/080_就诊_子分类.svg'
import scImg_58 from '@/icon/080_住院_子分类.svg'
import scImg_59 from '@/icon/080_保健_子分类.svg'

import scImg_60 from '@/icon/081_话费_子分类.svg'
import scImg_61 from '@/icon/081_宽带_子分类.svg'

import scImg_62 from '@/icon/082_三餐_子分类.svg'
import scImg_63 from '@/icon/082_柴米油盐_子分类.svg'
import scImg_64 from '@/icon/082_食材_子分类.svg'
import scImg_65 from '@/icon/082_零食_子分类.svg'
import scImg_66 from '@/icon/082_奶茶_子分类.svg'
import scImg_67 from '@/icon/082_咖啡_子分类.svg'
import scImg_68 from '@/icon/082_饮料_子分类.svg'
import scImg_69 from '@/icon/082_水果_子分类.svg'
import scImg_70 from '@/icon/082_烧烤_子分类.svg'
import scImg_71 from '@/icon/082_啤酒_子分类.svg'

import scImg_72 from '@/icon/067_添加_子分类.svg'

import scImg_73 from '@/icon/083_职业收入_分类.svg'
import scImg_74 from '@/icon/083_薪资_子分类.svg'
import scImg_75 from '@/icon/083_公积金_子分类.svg'
import scImg_76 from '@/icon/083_奖金_子分类.svg'

// 定义类型
export interface Category {
  id: string,
  icon: string,
  text: string,
  active: boolean,
  subCategoryList?: {
    id: string,
    icon: string,
    text: string,
    active: boolean,
    mcText?: string
  }[],
  mcText?: string
}

export default function () {
  // 支出分类
  let categoryListA = reactive<Category[]>([
    {
      id: 'fahgiagjasnv01',
      icon: mcImg_01,
      text: '餐饮',
      active: true,
      subCategoryList: [
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_62,
          text: '三餐',
          active: false,
        }, {
          id: 'fgaiuiahbioa02',
          icon: scImg_63,
          text: '柴米油盐',
          active: false,
        }, {
          id: 'fgaiuiahbioa03',
          icon: scImg_64,
          text: '食材',
          active: false,
        }, {
          id: 'fgaiuiahbioa04',
          icon: scImg_65,
          text: '零食',
          active: false,
        }, {
          id: 'fgaiuiahbioa05',
          icon: scImg_66,
          text: '奶茶',
          active: false,
        }, {
          id: 'fgaiuiahbioa06',
          icon: scImg_67,
          text: '咖啡',
          active: false,
        }, {
          id: 'fgaiuiahbioa07',
          icon: scImg_68,
          text: '饮料',
          active: false,
        }, {
          id: 'fgaiuiahbioa08',
          icon: scImg_69,
          text: '水果',
          active: false,
        }, {
          id: 'fgaiuiahbioa09',
          icon: scImg_70,
          text: '烧烤',
          active: false,
        }, {
          id: 'fgaiuiahbioa10',
          icon: scImg_71,
          text: '啤酒',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv02',
      icon: mcImg_02,
      text: '购物',
      active: false,
      subCategoryList: [
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_21,
          text: '包包',
          active: false,
        }, {
          id: 'fgaiuiahbioa02',
          icon: scImg_22,
          text: '厨房用品',
          active: false,
        }, {
          id: 'fgaiuiahbioa03',
          icon: scImg_23,
          text: '电器',
          active: false,
        }, {
          id: 'fgaiuiahbioa04',
          icon: scImg_24,
          text: '服装',
          active: false,
        }, {
          id: 'fgaiuiahbioa05',
          icon: scImg_25,
          text: '购物袋',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv03',
      icon: mcImg_03,
      text: '交通',
      active: false,
      subCategoryList: [
        {
          id: 'fgaiuiahbioa08',
          icon: scImg_33,
          text: '打车',
          active: false,
        },
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_26,
          text: '公交',
          active: false,
        }, {
          id: 'fgaiuiahbioa02',
          icon: scImg_27,
          text: '私家车',
          active: false,
        }, {
          id: 'fgaiuiahbioa03',
          icon: scImg_28,
          text: '地铁',
          active: false,
        }, {
          id: 'fgaiuiahbioa04',
          icon: scImg_29,
          text: '自行车',
          active: false,
        }, {
          id: 'fgaiuiahbioa05',
          icon: scImg_30,
          text: '飞机',
          active: false,
        }, {
          id: 'fgaiuiahbioa06',
          icon: scImg_31,
          text: '游轮',
          active: false,
        }, {
          id: 'fgaiuiahbioa07',
          icon: scImg_32,
          text: '缆车',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv04',
      icon: mcImg_04,
      text: '住宿',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_34,
          text: '房租',
          active: false,
        },
        {
          id: 'fgaiuiahbioa02',
          icon: scImg_35,
          text: '物业水电',
          active: false,
        }, {
          id: 'fgaiuiahbioa03',
          icon: scImg_36,
          text: '维修',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv05',
      icon: mcImg_05,
      text: '学习',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_37,
          text: '网课',
          active: false,
        },
        {
          id: 'fgaiuiahbioa02',
          icon: scImg_38,
          text: '书籍',
          active: false,
        }, {
          id: 'fgaiuiahbioa03',
          icon: scImg_39,
          text: '培训',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv06',
      icon: mcImg_06,
      text: '人情',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_40,
          text: '送礼',
          active: false,
        },
        {
          id: 'fgaiuiahbioa02',
          icon: scImg_41,
          text: '发红包',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv07',
      icon: mcImg_07,
      text: '娱乐',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_42,
          text: '休闲',
          active: false,
        },{
          id: 'fgaiuiahbioa02',
          icon: scImg_43,
          text: '电影',
          active: false,
        },{
          id: 'fgaiuiahbioa03',
          icon: scImg_44,
          text: '健身',
          active: false,
        },{
          id: 'fgaiuiahbioa04',
          icon: scImg_45,
          text: '约会',
          active: false,
        },{
          id: 'fgaiuiahbioa05',
          icon: scImg_46,
          text: '游戏',
          active: false,
        },{
          id: 'fgaiuiahbioa06',
          icon: scImg_47,
          text: '演唱会',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv08',
      icon: mcImg_08,
      text: '美妆',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_48,
          text: '洗面奶',
          active: false,
        },{
          id: 'fgaiuiahbioa02',
          icon: scImg_49,
          text: '化妆品',
          active: false,
        },{
          id: 'fgaiuiahbioa03',
          icon: scImg_50,
          text: '面膜',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv09',
      icon: mcImg_09,
      text: '旅游',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_51,
          text: '景点门票',
          active: false,
        },{
          id: 'fgaiuiahbioa02',
          icon: scImg_52,
          text: '酒店',
          active: false,
        },{
          id: 'fgaiuiahbioa03',
          icon: scImg_53,
          text: '团费',
          active: false,
        },{
          id: 'fgaiuiahbioa04',
          icon: scImg_54,
          text: '伴手礼',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv10',
      icon: mcImg_10,
      text: '医疗',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_55,
          text: '药品',
          active: false,
        },{
          id: 'fgaiuiahbioa02',
          icon: scImg_56,
          text: '治疗',
          active: false,
        },{
          id: 'fgaiuiahbioa03',
          icon: scImg_57,
          text: '就诊',
          active: false,
        },{
          id: 'fgaiuiahbioa04',
          icon: scImg_58,
          text: '住院',
          active: false,
        },{
          id: 'fgaiuiahbioa05',
          icon: scImg_59,
          text: '保健',
          active: false,
        }
      ]
    },{
      id: 'fahgiagjasnv11',
      icon: mcImg_11,
      text: '通讯',
      active: false,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_60,
          text: '话费',
          active: false,
        },{
          id: 'fgaiuiahbioa02',
          icon: scImg_61,
          text: '宽带',
          active: false,
        }
      ]
    }
  ])

  // 收入分类
  let categoryListB = reactive<Category[]>([
    {
      id: 'fahgiagjasnv12',
      icon: scImg_73,
      text: '职业收入',
      active: true,
      subCategoryList:[
        {
          id: 'fgaiuiahbioa01',
          icon: scImg_74,
          text: '薪资',
          active: false,
        },{
          id: 'fgaiuiahbioa02',
          icon: scImg_75,
          text: '公积金',
          active: false,
        },{
          id: 'fgaiuiahbioa03',
          icon: scImg_76,
          text: '奖金',
          active: false,
        }
      ]
    },
  ])

  // 添加子分类
  let addSubCategoryVal = reactive<Category>({
    id: 'ffiejafua01',
    icon: scImg_72,
    text: '添加子分类',
    active: false
  })

  return {  categoryListA, categoryListB, addSubCategoryVal }
}